package cn.iocoder.yudao.module.form.mysql;

import cn.iocoder.yudao.module.form.dataobject.DatabaseDomain;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DatabaseDomainMapper {

    @Select("SELECT * FROM `database_domain`")
    List<DatabaseDomain> selectList();

    @Select("SELECT domain_name FROM `database_domain` where database_name=#{databaseName}")
    String getDomain(@Param("databaseName") String databaseName);
}
